package com.njtoyo.taxi.admin.service.platform;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njtoyo.taxi.admin.rest.presenter.platfrom.sensitive.SensitiveOperationPresenter;
import com.njtoyo.taxi.admin.rest.wrapper.platform.sensitive.SensitiveOperationWrapper;
import com.njtoyo.taxi.admin.rest.wrapper.platform.sensitive.SensitiveRegisteredWrapper;
import com.njtoyo.taxi.admin.rest.wrapper.platform.sensitive.SensitiveUpdateWrapper;
import com.taxi.entity.common.RestResult;
import com.njtoyo.taxi.entity.backend.AdminUser;

import javax.mail.MessagingException;

public interface SensitiveOperationService {
    RestResult sendAuthorizationCode(AdminUser adminUser, String operationName) throws MessagingException;

    RestResult<Page<SensitiveOperationPresenter>> sensitiveOperationList(AdminUser adminUser, SensitiveOperationWrapper wrapper);

    RestResult registered(SensitiveRegisteredWrapper wrapper);


    RestResult update(Long id, SensitiveUpdateWrapper wrapper);

    RestResult delete(Long id);

}
